package com.anpy.security.mapper;

import com.anpy.common.BaseServiceImpl;
import com.anpy.security.domain.SysUserEntity;
import org.springframework.stereotype.Service;

@Service("SysUserMapperImpl")
public class SysUserMapperImpl extends BaseServiceImpl<SysUserMapper, SysUserEntity> {

    public SysUserEntity getByUserName(String userName) {
        return lambdaQuery()
                .eq(SysUserEntity::getUserName, userName).one();
    }

}
